<?php

// $Id$

require_once(TANGRA_MAIN_DIR.'nls/date.inc.php');


class TCMS_CI_Mod extends Tangra_Class {
	private $id;
	private $ci;
	private $modified_ts;
	private $modified_by;


	public function set_id($id) {
		tangra_if_not_int_throw_e($id);

		$this->id = $id;
	}


	public function get_id() {
		return $this->id;
	}


	public function set_ci($ci) {
		tangra_if_not_int_throw_e($ci);

		$this->ci = $ci;
	}


	public function get_ci() {
		return $this->ci;
	}


	protected function set_modified_ts($modified_ts) {
		if (check_timestamp($modified_ts)) {
			$this->modified_ts = $modified_ts;
		} else {
			throw new Tangra_Module_Exception('Invalid datetime in $modified_ts: '.$modified_ts);
		}
	}


	public function get_modified_ts() {
		return $this->modified_ts;
	}


	public function set_modified_by($modified_by) {
		tangra_if_not_int_throw_e($modified_by);

		$this->modified_by = $modified_by;
	}


	public function get_modified_by() {
		return $this->modified_by;
	}



}